package com.ld.security.shop.crawler.modules.wo.service.impl;

import com.ld.security.common.core.util.UuidUtil;
import  com.ld.security.shop.crawler.modules.wo.service.IWoDataService;
import  com.ld.security.shop.crawler.modules.wo.entity.WoData;
import com.ld.security.common.mybatis.base.service.*;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
 class  WoDataServiceImpl extends ISuperServiceImpl<WoData> implements 
 IWoDataService {


 @Override
 public int save(WoData entity) {
  entity.setId(UuidUtil.getId(entity.getTaskUrl()));
  return super.save(entity);
 }
}
